package com.tanchengjin.admin.modules.blog.controller.api.v1;

import com.tanchengjin.admin.utils.ServerResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/api/v1")
public class IndexApiController {
    @RequestMapping(value = "/test",method = RequestMethod.GET)
    @ResponseBody
    public ServerResponse test() {
        return  ServerResponse.responseWithSuccess("success");
    }

    @RequestMapping(value = "/test/test",method = RequestMethod.GET)
    @ResponseBody
    public ServerResponse test1() {
        return  ServerResponse.responseWithSuccess("success");
    }
}